package com.aoip.telemetry.telemetry.entity.merge;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author chenbai
 * @version 1.0
 * @date 2022/10/13 22:33
 */
@Data
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("data_merge_rule_group")
@ApiModel(description = "数据合并规则组信息表")
public class DataMergeRuleGroupEntity implements Serializable {

    private static final long serialVersionUID = -4414324080188895500L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("数据id")
    private String id;

    @TableField(value = "rule_group_name")
    @ApiModelProperty("合并规则组名称")
    private String ruleGroupName;

    @TableField(value = "rule_group_target_table")
    @ApiModelProperty("规则组目标表名称")
    private String ruleGroupTargetTable;

    @TableField(value = "rule_group_target_field")
    @ApiModelProperty("规则组目标表字段")
    private String ruleGroupTargetField;

    @TableField(value = "rule_group_target_tm_field")
    @ApiModelProperty("规则组目标表时间字段")
    private String ruleGroupTargetTmField;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime modifyTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("删除标识")
    @TableLogic
    private Integer delFlag;

    @TableField(value = "bz")
    @ApiModelProperty("备注信息")
    private String bz;

}
